package com.violation.model;

import java.util.List;

public class ViolationService {
	private ViolationDAO_interface dao;

	public ViolationService() {
		dao = new ViolationDAO();
	}

	// 
	public ViolationVO getOneMem(Integer violation_id) {
		return dao.getByViolation_id(violation_id);
	}

	// 
	public List<ViolationVO> getAll() {
		return dao.getAll();
	}
}
